#include <stdlib.h>
#include <stdio.h>

void func(char *p)
{
	*p = 'A';
	*(p+1) = 'B';

	printf("p=0x%x\n",p);
	return;
}

void func2(char *pp)
{
	*pp = 'Z';
	return;
}

int main()
{
//#1
	char aaa[2];
	func(aaa);

	printf("%c\n",aaa[0]);
	printf("%c\n",aaa[1]);

	printf("aaa=0x%x\n",aaa);

//#2
	char bbb[2][3];
	func2(bbb[0]);

	printf("bbb=0x%x\n",bbb);
	printf("bbb[0]=0x%x\n",bbb[0]);
	printf("&bbb[0][0]=0x%x\n",&bbb[0][0]);
	printf("%c\n",bbb[0][0]);

	return 0;
}
